#!/bin/sh

set -e



if [ "$1" = remove ]; then

mv -f /etc/rc2.d/S02dbus /etc/rc2.d/S12dbus 2> /dev/null

mv -f /etc/rc2.d/S03hal /etc/rc2.d/S24hal 2> /dev/null
mv -f /etc/rc2.d/S04kdm /etc/rc2.d/S30kdm 2> /dev/null
mv -f /etc/rc2.d/S04gdm /etc/rc2.d/S30gdm 2> /dev/null
mv -f /etc/rc2.d/S05NetworkManager /etc/rc2.d/S50NetworkManager 2> /dev/null
mv -f /etc/rc2.d/S90winbind /etc/rc2.d/S20winbind 2> /dev/null

    if [ -e /etc/init.d/readahead ]; then

	ln -sf /etc/init.d/readahead /etc/rcS.d/S02readahead

    fi

    if [ -e /etc/init.d/readahead-desktop ]; then

	ln -sf /etc/init.d/readahead-desktop /etc/rcS.d/S39bigahead-desktop

    fi

fi
